/**
 * @author: HenryDai
 * @Date: 2022/05/01 19:17
 * @description:
 */
public class HungrySecurity {
    private static HungrySecurity instance = new HungrySecurity();

    HungrySecurity(){

    }

    /**
     * 饿汉模式实现单例,线程安全
     * @return
     */
    public static HungrySecurity getInstance()
    {
        return instance;
    }
}
